package com.hxy.dao;

import com.hxy.pojo.Stuffinfo;
import com.hxy.pojo.Trainnote;
import com.hxy.pojo.vo.StuffVoResultMapAndTrainNote;
import com.hxy.pojo.vo.StuffinfoShowByIdVo;
import com.hxy.pojo.vo.StuffinfoVo;
import com.hxy.pojo.vo.TrainnoteVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

public interface TrainnoteMapper {

    List<Trainnote> selectAll();

    int deleteByPrimaryKey(Integer id);

    int insert(TrainnoteVo record);

    TrainnoteVo selectByPrimaryKey(Integer id);


    List<TrainnoteVo> findTrainnoteByTJ(TrainnoteVo trainnotevo);

    int updataTrainNote(TrainnoteVo trainnoteVo);

    int deleteTrainNote(Integer id);

    List<StuffinfoShowByIdVo> findTrainnoteStu(Integer id);

    List<StuffVoResultMapAndTrainNote> findTrainnoteAllStu();

    int deleteTrainNote_IndexByTidAndEid(@Param("tid")Integer tid, @Param("eid") Integer eid);

    int selectTrainNote_IndexByTidAndEid(@Param("tid")Integer tid, @Param("eid") Integer eid);

    int addTrainNote_IndexByTidAndEid(@Param("tid")Integer tid, @Param("eid") Integer eid);


}